import request from "superagent";
import {
    serverPath,
    json
} from "../../common/config.js";
import {
    prepareRequest,
    serviceInterceptor
} from "../../common/utils";


class MenuService {
    /**
     * @constructor
     */
    constructor() {

    }
    @serviceInterceptor()
    async getMenuAsync() {
        let req = request.get(`${serverPath}menus`)
            .accept('application/json');

        return await prepareRequest(req);
    }
}
export default MenuService